package com.ficus.road.maintain.core.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UnitScoreInfo {
    // 标段得分
    private Double score;
    //标段名称
    private String unitName;
    //规范化管理详情
    private UnitModuleScore normalization;
    //智能管理详情
    private UnitModuleScore smart;
    //专项扣分详情
    private UnitModuleScore special;

    @Data
    public class UnitModuleScore{
        private Integer score;
        private List<DeductDetail> deducts;
    }

    @Data
    public class DeductDetail{
        private Integer deductScore;
        private String type;
        private String deductReason;
    }
}
